.class final LPkUwx/Axwse/GTxVB/WkRVD;
.super Ljava/lang/Object;

# interfaces
.implements LwFZra/NYfbw;


# static fields
.field private static final kNfee:J = 0x4000L

.field static final synthetic vKVmZ:Z


# instance fields
.field private final CzmcQ:LwFZra/UulfZ;

.field private FfBKI:Z

.field private lBLvS:Z

.field final synthetic lZClH:LPkUwx/Axwse/GTxVB/hkAvF;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-class v0, LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    sput-boolean v0, LPkUwx/Axwse/GTxVB/WkRVD;->vKVmZ:Z

    return-void

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method constructor <init>(LPkUwx/Axwse/GTxVB/hkAvF;)V
    .locals 1

    iput-object p1, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, LwFZra/UulfZ;

    invoke-direct {v0}, LwFZra/UulfZ;-><init>()V

    iput-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->CzmcQ:LwFZra/UulfZ;

    return-void
.end method

.method static synthetic CVtmR(LPkUwx/Axwse/GTxVB/WkRVD;Z)Z
    .locals 0

    iput-boolean p1, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lBLvS:Z

    return p1
.end method

.method static synthetic CyWQB(LPkUwx/Axwse/GTxVB/WkRVD;)Z
    .locals 1

    iget-boolean v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->FfBKI:Z

    return v0
.end method

.method private MZAeL(Z)V
    .locals 6

    iget-object v1, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->VKcVX(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/aZwWL;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/Axwse/GTxVB/aZwWL;->MRhQp()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :goto_0
    :try_start_1
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    iget-wide v2, v0, LPkUwx/Axwse/GTxVB/hkAvF;->sVtRO:J

    const-wide/16 v4, 0x0

    cmp-long v0, v2, v4

    if-gtz v0, :cond_0

    iget-boolean v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lBLvS:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->FfBKI:Z

    if-nez v0, :cond_0

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->hwSNv(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/PMVmL;

    move-result-object v0

    if-nez v0, :cond_0

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->bjrkw(LPkUwx/Axwse/GTxVB/hkAvF;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    :try_start_2
    iget-object v2, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v2}, LPkUwx/Axwse/GTxVB/hkAvF;->VKcVX(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/aZwWL;

    move-result-object v2

    invoke-virtual {v2}, LPkUwx/Axwse/GTxVB/aZwWL;->YdQec()V

    throw v0

    :catchall_1
    move-exception v0

    monitor-exit v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    throw v0

    :cond_0
    :try_start_3
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->VKcVX(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/aZwWL;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/Axwse/GTxVB/aZwWL;->YdQec()V

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->iCgXp(LPkUwx/Axwse/GTxVB/hkAvF;)V

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    iget-wide v2, v0, LPkUwx/Axwse/GTxVB/hkAvF;->sVtRO:J

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->CzmcQ:LwFZra/UulfZ;

    invoke-virtual {v0}, LwFZra/UulfZ;->andiF()J

    move-result-wide v4

    invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v4

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    iget-wide v2, v0, LPkUwx/Axwse/GTxVB/hkAvF;->sVtRO:J

    sub-long/2addr v2, v4

    iput-wide v2, v0, LPkUwx/Axwse/GTxVB/hkAvF;->sVtRO:J

    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->VKcVX(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/aZwWL;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/Axwse/GTxVB/aZwWL;->MRhQp()V

    :try_start_4
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->ivOHv(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/BbJbp;

    move-result-object v0

    iget-object v1, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v1}, LPkUwx/Axwse/GTxVB/hkAvF;->fmEjb(LPkUwx/Axwse/GTxVB/hkAvF;)I

    move-result v1

    if-eqz p1, :cond_1

    iget-object v2, p0, LPkUwx/Axwse/GTxVB/WkRVD;->CzmcQ:LwFZra/UulfZ;

    invoke-virtual {v2}, LwFZra/UulfZ;->andiF()J

    move-result-wide v2

    cmp-long v2, v4, v2

    if-nez v2, :cond_1

    const/4 v2, 0x1

    :goto_1
    iget-object v3, p0, LPkUwx/Axwse/GTxVB/WkRVD;->CzmcQ:LwFZra/UulfZ;

    invoke-virtual/range {v0 .. v5}, LPkUwx/Axwse/GTxVB/BbJbp;->MATMn(IZLwFZra/UulfZ;J)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_2

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->VKcVX(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/aZwWL;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/Axwse/GTxVB/aZwWL;->YdQec()V

    return-void

    :cond_1
    const/4 v2, 0x0

    goto :goto_1

    :catchall_2
    move-exception v0

    iget-object v1, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v1}, LPkUwx/Axwse/GTxVB/hkAvF;->VKcVX(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/aZwWL;

    move-result-object v1

    invoke-virtual {v1}, LPkUwx/Axwse/GTxVB/aZwWL;->YdQec()V

    throw v0
.end method

.method static synthetic smHXZ(LPkUwx/Axwse/GTxVB/WkRVD;)Z
    .locals 1

    iget-boolean v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lBLvS:Z

    return v0
.end method


# virtual methods
.method public close()V
    .locals 6

    const-wide/16 v4, 0x0

    const/4 v2, 0x1

    sget-boolean v0, LPkUwx/Axwse/GTxVB/WkRVD;->vKVmZ:Z

    if-nez v0, :cond_0

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    :cond_0
    iget-object v1, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    monitor-enter v1

    :try_start_0
    iget-boolean v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->FfBKI:Z

    if-eqz v0, :cond_1

    monitor-exit v1

    :goto_0
    return-void

    :cond_1
    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    iget-object v0, v0, LPkUwx/Axwse/GTxVB/hkAvF;->rfZlh:LPkUwx/Axwse/GTxVB/WkRVD;

    iget-boolean v0, v0, LPkUwx/Axwse/GTxVB/WkRVD;->lBLvS:Z

    if-nez v0, :cond_3

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->CzmcQ:LwFZra/UulfZ;

    invoke-virtual {v0}, LwFZra/UulfZ;->andiF()J

    move-result-wide v0

    cmp-long v0, v0, v4

    if-lez v0, :cond_2

    :goto_1
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->CzmcQ:LwFZra/UulfZ;

    invoke-virtual {v0}, LwFZra/UulfZ;->andiF()J

    move-result-wide v0

    cmp-long v0, v0, v4

    if-lez v0, :cond_3

    invoke-direct {p0, v2}, LPkUwx/Axwse/GTxVB/WkRVD;->MZAeL(Z)V

    goto :goto_1

    :catchall_0
    move-exception v0

    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0

    :cond_2
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->ivOHv(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/BbJbp;

    move-result-object v0

    iget-object v1, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v1}, LPkUwx/Axwse/GTxVB/hkAvF;->fmEjb(LPkUwx/Axwse/GTxVB/hkAvF;)I

    move-result v1

    const/4 v3, 0x0

    invoke-virtual/range {v0 .. v5}, LPkUwx/Axwse/GTxVB/BbJbp;->MATMn(IZLwFZra/UulfZ;J)V

    :cond_3
    iget-object v1, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    monitor-enter v1

    const/4 v0, 0x1

    :try_start_2
    iput-boolean v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->FfBKI:Z

    monitor-exit v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->ivOHv(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/BbJbp;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/Axwse/GTxVB/BbJbp;->hlxnY()V

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->LDorc(LPkUwx/Axwse/GTxVB/hkAvF;)V

    goto :goto_0

    :catchall_1
    move-exception v0

    :try_start_3
    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    throw v0
.end method

.method public ecoRZ()LwFZra/kEGWw;
    .locals 1

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->VKcVX(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/aZwWL;

    move-result-object v0

    return-object v0
.end method

.method public flush()V
    .locals 4

    sget-boolean v0, LPkUwx/Axwse/GTxVB/WkRVD;->vKVmZ:Z

    if-nez v0, :cond_0

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    :cond_0
    iget-object v1, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->iCgXp(LPkUwx/Axwse/GTxVB/hkAvF;)V

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :goto_0
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->CzmcQ:LwFZra/UulfZ;

    invoke-virtual {v0}, LwFZra/UulfZ;->andiF()J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-lez v0, :cond_1

    const/4 v0, 0x0

    invoke-direct {p0, v0}, LPkUwx/Axwse/GTxVB/WkRVD;->MZAeL(Z)V

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, LPkUwx/Axwse/GTxVB/hkAvF;->ivOHv(LPkUwx/Axwse/GTxVB/hkAvF;)LPkUwx/Axwse/GTxVB/BbJbp;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/Axwse/GTxVB/BbJbp;->hlxnY()V

    goto :goto_0

    :catchall_0
    move-exception v0

    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0

    :cond_1
    return-void
.end method

.method public lxZZo(LwFZra/UulfZ;J)V
    .locals 4

    sget-boolean v0, LPkUwx/Axwse/GTxVB/WkRVD;->vKVmZ:Z

    if-nez v0, :cond_0

    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->lZClH:LPkUwx/Axwse/GTxVB/hkAvF;

    invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    :cond_0
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->CzmcQ:LwFZra/UulfZ;

    invoke-virtual {v0, p1, p2, p3}, LwFZra/UulfZ;->lxZZo(LwFZra/UulfZ;J)V

    :goto_0
    iget-object v0, p0, LPkUwx/Axwse/GTxVB/WkRVD;->CzmcQ:LwFZra/UulfZ;

    invoke-virtual {v0}, LwFZra/UulfZ;->andiF()J

    move-result-wide v0

    const-wide/16 v2, 0x4000

    cmp-long v0, v0, v2

    if-ltz v0, :cond_1

    const/4 v0, 0x0

    invoke-direct {p0, v0}, LPkUwx/Axwse/GTxVB/WkRVD;->MZAeL(Z)V

    goto :goto_0

    :cond_1
    return-void
.end method
